package Test1008;

import java.awt.desktop.SystemSleepEvent;
import java.util.Scanner;

public class Test13  {
    public static void main(String[] args) {
        // 求一个正整数 倒转后加上1024的结果.比如 12345倒转后是54321,加上1024，结果是55345.
        System.out.println("输入一个正整数");
        Scanner input = new Scanner(System.in);
        int num = input.nextInt();
        System.out.println("输入的数为:"+num);
        int gewei = num%10 ;
        int shiwei=num/10%10;
        int baiwei=num/100%10;
        int qianwei=num/1000%10;
        System.out.println(gewei);
        System.out.println(shiwei);
        System.out.println(baiwei);
        System.out.println(qianwei);
    }
}
